package com.wonders.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wonders.dto.Result;
import com.wonders.entity.Blog;
/**
 * 功能描述:探店笔记表服务接口类
 * @Author: yyalin
 * @CreateDate: 2023/8/14 13:22
 */
public interface IBlogService extends IService<Blog> {

    Result queryHotBlog(Integer current);

    Result queryBlogById(Long id);
    /**
     * 功能描述:点赞功能
     * @MethodName: likeBlog
     * @MethodParam: [id]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/14 14:28
     */
    Result likeBlog(Long id, Long userId);
    /**
     * 功能描述:根据ID查询点赞的所有用户
     * @MethodName: queryBlogLikes
     * @MethodParam: [id]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/14 14:06
     */
    Result queryBlogLikes(Long id);
    /**
     * 功能描述:保存探店笔记信息并推送消息到订阅者
     * @MethodName: saveBlog
     * @MethodParam: [blog]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/15 17:01
     */
    Result saveBlog(Blog blog);
    /**
     * 功能描述:查询所有探店笔记的粉丝数(外加：滚动分页)
     * @MethodName: queryBlogOfFollow
     * @MethodParam: [max, offset]
     * @Return: com.wonders.dto.Result
     * @Author: yyalin
     * @CreateDate: 2023/8/17 12:54
     */
    Result queryBlogOfFollow(Long max, Integer offset);

}
